-- GENERATED SPELL FOR [Dark Rune Theurgist] --


function spell0_27963(pUnit, Event) --@Forked Lightning,n/a--
pUnit:FullCastSpellOnTarget(53167,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27963', 2000, 1)
end

function spell1_27963(pUnit, Event) --@Forked Lightning,n/a--
pUnit:FullCastSpellOnTarget(59152,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27963', 2000, 1)
end

function spell2_27963(pUnit, Event) --@Iron Might,n/a--
pUnit:FullCastSpellOnTarget(51484,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27963', 630, 1)
end

function spell3_27963(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(15801,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27963', 3000, 1)
end

function spell4_27963(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(35010,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27963', 3000, 1)
end

function Sorts_27963(pUnit, Event)
local choix_sorts_27963 = math.random(0, 4)
if choix_sorts_27963 == 0 then
pUnit:RegisterEvent('spell0_27963', 1, 1)
end
if choix_sorts_27963 == 1 then
pUnit:RegisterEvent('spell1_27963', 1, 1)
end
if choix_sorts_27963 == 2 then
pUnit:RegisterEvent('spell2_27963', 1, 1)
end
if choix_sorts_27963 == 3 then
pUnit:RegisterEvent('spell3_27963', 1, 1)
end
if choix_sorts_27963 == 4 then
pUnit:RegisterEvent('spell4_27963', 1, 1)
end
end

function mob27963_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27963', math.random(1500, 3000), 1)
end

function mob27963_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27963_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27963_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27963, 1, 'mob27963_Action')
RegisterUnitEvent(27963, 2, 'mob27963_Leave')
RegisterUnitEvent(27963, 3, 'mob27963_Kill')
RegisterUnitEvent(27963, 4, 'mob27963_Die')
